package com.cxw.healthserver.entity

import com.baomidou.mybatisplus.annotation.FieldFill
import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableId
import java.util.*

/**
 * @createTime 2024/6/16 12:56
 * @author 崔兴旺
 * @description
 */
class Token {
    @TableId(type = IdType.ASSIGN_ID)
    var id: String = ""
    var token: String = ""
    var userid: String = ""
    @TableField("expirationTime")
    var expirationTime: Long = 0

    @TableField(fill = FieldFill.INSERT)
    val createTime: Date? = null
    @TableField(fill = FieldFill.INSERT_UPDATE)
    val updateTime: Date? = null

}